package com.wyfan.scaffold.common;

public enum ResultType {

    SUCCESS(200,"成功"),
    FAIL(500,"失败"),
    NO_PERMISSION(403,"权限不足"),
    ERROR_PARAM(406,"参数错误");


    private int code;
    private String msg;

    ResultType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
